/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package eu.bopet.jocadv.core;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * The class represents parameters of geometric constraints
 *
 * @author bocskapeter
 */
public class Parameter extends Element implements Serializable {

    // list of the parameter values
    private final List<Double> parameterList;

    /**
     * Default constructor
     * 
     * @param name 
     */
    public Parameter(String name) {
        super(name);
        parameterList = new ArrayList<Double>();
    }

    /**
     * Gets the list of the parameters
     * 
     * @return list of double values
     */
    public List<Double> getParameterList() {
        return parameterList;
    }

    /**
     * Adds double value to the parameter list
     * @param parameter 
     */
    public void addParameterToList(double parameter) {
        this.parameterList.add(parameter);
    }

    /**
     * Converts to String
     * 
     * @return String
     */
    @Override
    public String toString() {
        return "Parameter{" + super.toString() + "parameterList=" + parameterList + '}';
    }

}
